| 
                
               | 
              
                
               | 
              
                @@ -4,7 +4,7 @@ import monetary 
               | 
            
            
            
              | 
                4
               | 
              
                4
               | 
              
                 from django.conf import settings 
               | 
            
            
            
              | 
                5
               | 
              
                5
               | 
              
                 from django.contrib import admin 
               | 
            
            
            
              | 
                6
               | 
              
                6
               | 
              
                 from django.contrib.auth.hashers import make_password 
               | 
            
            
            
              | 
                7
               | 
              
                
               | 
              
                -from django_admin import DeleteModelAdmin, ReadOnlyModelAdmin 
               | 
            
            
            
              | 
                
               | 
              
                7
               | 
              
                +from django_admin import ReadOnlyModelAdmin 
               | 
            
            
            
              | 
                8
               | 
              
                8
               | 
              
                 from django_models_ext import ProvinceShortModelMixin 
               | 
            
            
            
              | 
                9
               | 
              
                9
               | 
              
                 from pysnippets.strsnippets import strip 
               | 
            
            
            
              | 
                10
               | 
              
                10
               | 
              
                  
               | 
            
            
            
            
            
              | 
                
               | 
              
                
               | 
              
                @@ -12,7 +12,7 @@ from mch.models import (AdministratorInfo, BrandInfo, ConsumeInfoSubmitLogInfo, 
               | 
            
            
            
              | 
                12
               | 
              
                12
               | 
              
                                         LatestAppScreenInfo, ModelInfo, OperatorInfo, SaleclerkInfo) 
               | 
            
            
            
              | 
                13
               | 
              
                13
               | 
              
                  
               | 
            
            
            
              | 
                14
               | 
              
                14
               | 
              
                  
               | 
            
            
            
              | 
                15
               | 
              
                
               | 
              
                -class AdministratorInfoAdmin(DeleteModelAdmin, admin.ModelAdmin): 
               | 
            
            
            
              | 
                
               | 
              
                15
               | 
              
                +class AdministratorInfoAdmin(admin.ModelAdmin): 
               | 
            
            
            
              | 
                16
               | 
              
                16
               | 
              
                     list_display = ('admin_id', 'phone', 'password', 'encryption', 'name', 'brand_id', 'brand_name', 'user_status', 'status', 'created_at', 'updated_at')
               | 
            
            
            
              | 
                17
               | 
              
                17
               | 
              
                     list_filter = ('user_status', 'status', 'brand_name')
               | 
            
            
            
              | 
                18
               | 
              
                18
               | 
              
                     readonly_fields = ('encryption', 'brand_name')
               | 
            
            
            
            
            
              | 
                
               | 
              
                
               | 
              
                @@ -33,7 +33,7 @@ class AdministratorInfoAdmin(DeleteModelAdmin, admin.ModelAdmin): 
               | 
            
            
            
              | 
                33
               | 
              
                33
               | 
              
                         obj.save() 
               | 
            
            
            
              | 
                34
               | 
              
                34
               | 
              
                  
               | 
            
            
            
              | 
                35
               | 
              
                35
               | 
              
                  
               | 
            
            
            
              | 
                36
               | 
              
                
               | 
              
                -class OperatorInfoAdmin(DeleteModelAdmin, admin.ModelAdmin): 
               | 
            
            
            
              | 
                
               | 
              
                36
               | 
              
                +class OperatorInfoAdmin(admin.ModelAdmin): 
               | 
            
            
            
              | 
                37
               | 
              
                37
               | 
              
                     list_display = ('operator_id', 'phone', 'password', 'encryption', 'name', 'brand_id', 'brand_name', 'brand_domain', 'user_status', 'status', 'created_at', 'updated_at')
               | 
            
            
            
              | 
                38
               | 
              
                38
               | 
              
                     list_filter = ('user_status', 'status', 'brand_name')
               | 
            
            
            
              | 
                39
               | 
              
                39
               | 
              
                     readonly_fields = ('brand_domain', 'encryption', 'brand_name')
               | 
            
            
            
            
            
              | 
                
               | 
              
                
               | 
              
                @@ -54,7 +54,7 @@ class OperatorInfoAdmin(DeleteModelAdmin, admin.ModelAdmin): 
               | 
            
            
            
              | 
                54
               | 
              
                54
               | 
              
                         obj.save() 
               | 
            
            
            
              | 
                55
               | 
              
                55
               | 
              
                  
               | 
            
            
            
              | 
                56
               | 
              
                56
               | 
              
                  
               | 
            
            
            
              | 
                57
               | 
              
                
               | 
              
                -class BrandInfoAdmin(DeleteModelAdmin, admin.ModelAdmin): 
               | 
            
            
            
              | 
                
               | 
              
                57
               | 
              
                +class BrandInfoAdmin(admin.ModelAdmin): 
               | 
            
            
            
              | 
                58
               | 
              
                58
               | 
              
                     list_display = ('brand_id', 'brand_name', 'brand_descr', 'brand_logo', 'brand_domain', 'position', 'status', 'created_at', 'updated_at')
               | 
            
            
            
              | 
                59
               | 
              
                59
               | 
              
                  
               | 
            
            
            
              | 
                60
               | 
              
                60
               | 
              
                     def save_model(self, request, obj, form, change): 
               | 
            
            
            
            
            
              | 
                
               | 
              
                
               | 
              
                @@ -62,7 +62,7 @@ class BrandInfoAdmin(DeleteModelAdmin, admin.ModelAdmin): 
               | 
            
            
            
              | 
                62
               | 
              
                62
               | 
              
                         OperatorInfo.objects.filter(brand_id=obj.brand_id).update(brand_domain=obj.brand_domain) 
               | 
            
            
            
              | 
                63
               | 
              
                63
               | 
              
                  
               | 
            
            
            
              | 
                64
               | 
              
                64
               | 
              
                  
               | 
            
            
            
              | 
                65
               | 
              
                
               | 
              
                -class ModelInfoAdmin(DeleteModelAdmin, admin.ModelAdmin): 
               | 
            
            
            
              | 
                
               | 
              
                65
               | 
              
                +class ModelInfoAdmin(admin.ModelAdmin): 
               | 
            
            
            
              | 
                66
               | 
              
                66
               | 
              
                     list_display = ('brand_id', 'brand_name', 'jancode', 'model_id', 'model_uni_name', 'model_name', 'model_full_name', 'model_descr', 'category', 'warehouse', 'image', 'url', 'factory_yuan', 'integral', 'position', 'display', 'status', 'created_at', 'updated_at')
               | 
            
            
            
              | 
                67
               | 
              
                67
               | 
              
                     list_filter = ('brand_name', 'category', 'warehouse', 'display', 'status')
               | 
            
            
            
              | 
                68
               | 
              
                68
               | 
              
                     readonly_fields = ('brand_name', 'factory_fee')
               | 
            
            
            
            
            
              | 
                
               | 
              
                
               | 
              
                @@ -81,7 +81,7 @@ class ModelInfoAdmin(DeleteModelAdmin, admin.ModelAdmin): 
               | 
            
            
            
              | 
                81
               | 
              
                81
               | 
              
                         obj.save() 
               | 
            
            
            
              | 
                82
               | 
              
                82
               | 
              
                  
               | 
            
            
            
              | 
                83
               | 
              
                83
               | 
              
                  
               | 
            
            
            
              | 
                84
               | 
              
                
               | 
              
                -class ModelImageInfoAdmin(DeleteModelAdmin, admin.ModelAdmin): 
               | 
            
            
            
              | 
                
               | 
              
                84
               | 
              
                +class ModelImageInfoAdmin(admin.ModelAdmin): 
               | 
            
            
            
              | 
                85
               | 
              
                85
               | 
              
                     list_display = ('model_id', 'model_name', 'image', 'url', 'position', 'status', 'created_at', 'updated_at')
               | 
            
            
            
              | 
                86
               | 
              
                86
               | 
              
                     list_filter = ('model_name', 'status')
               | 
            
            
            
              | 
                87
               | 
              
                87
               | 
              
                  
               | 
            
            
            
            
            
              | 
                
               | 
              
                
               | 
              
                @@ -95,7 +95,7 @@ class ModelImageInfoAdmin(DeleteModelAdmin, admin.ModelAdmin): 
               | 
            
            
            
              | 
                95
               | 
              
                95
               | 
              
                         obj.save() 
               | 
            
            
            
              | 
                96
               | 
              
                96
               | 
              
                  
               | 
            
            
            
              | 
                97
               | 
              
                97
               | 
              
                  
               | 
            
            
            
              | 
                98
               | 
              
                
               | 
              
                -class DistributorInfoAdmin(DeleteModelAdmin, admin.ModelAdmin): 
               | 
            
            
            
              | 
                
               | 
              
                98
               | 
              
                +class DistributorInfoAdmin(admin.ModelAdmin): 
               | 
            
            
            
              | 
                99
               | 
              
                99
               | 
              
                     list_display = ('brand_id', 'brand_name', 'distributor_id', 'distributor_name', 'distributor_short_name', 'distributor_province_name', 'position', 'status', 'created_at', 'updated_at')
               | 
            
            
            
              | 
                100
               | 
              
                100
               | 
              
                     list_filter = ('brand_name', 'distributor_province_name', 'status')
               | 
            
            
            
              | 
                101
               | 
              
                101
               | 
              
                     readonly_fields = ('brand_name', 'distributor_province_code')
               | 
            
            
            
            
            
              | 
                
               | 
              
                
               | 
              
                @@ -126,7 +126,7 @@ class SaleclerkInfoAdmin(admin.ModelAdmin): 
               | 
            
            
            
              | 
                126
               | 
              
                126
               | 
              
                     #     SaleclerkSubmitLogInfo.objects.filter(distributor_id=obj.distributor_id).update(test_user=True) 
               | 
            
            
            
              | 
                127
               | 
              
                127
               | 
              
                  
               | 
            
            
            
              | 
                128
               | 
              
                128
               | 
              
                  
               | 
            
            
            
              | 
                129
               | 
              
                
               | 
              
                -class BrandModelDistributorPriceInfoAdmin(DeleteModelAdmin, admin.ModelAdmin): 
               | 
            
            
            
              | 
                
               | 
              
                129
               | 
              
                +class BrandModelDistributorPriceInfoAdmin(admin.ModelAdmin): 
               | 
            
            
            
              | 
                130
               | 
              
                130
               | 
              
                     list_display = ('brand_id', 'brand_name', 'model_id', 'model_name', 'distributor_id', 'distributor_name', 'factory_yuan', 'integral', 'status', 'created_at', 'updated_at')
               | 
            
            
            
              | 
                131
               | 
              
                131
               | 
              
                     list_filter = ('brand_name', 'model_name', 'distributor_name', 'status')
               | 
            
            
            
              | 
                132
               | 
              
                132
               | 
              
                     readonly_fields = ('brand_name', 'model_name', 'distributor_name', 'factory_fee', )
               |